from dotenv import load_dotenv
import os
load_dotenv()
api_key = os.getenv('API_KEY')
print(api_key)


from joblib import Parallel,delayed
import time

def process_data(i):
    time.sleep(1)
    return i * i

start = time.time()
results = Parallel(n_jobs=1)(delayed(process_data)(i) for i in range(10))
end = time.time()
print(f"时间：{end-start}")
print(results)